<%@page import="org.jasig.cas.client.authentication.AttributePrincipal"%>
<%@page import="org.jasig.cas.client.util.AssertionHolder"%>
<html>
<body>
<h2>Hello World!</h2>
<% AttributePrincipal principal = (AttributePrincipal)request.getUserPrincipal(); %>
<OL>
<LI>request.getRemoteUser()  :<%= request.getRemoteUser() %></LI>
<%if(principal != null) {%>
<LI>request.getUserPrincipal().getName():
<%=principal.getName() %>
<LI>org.jasig.cas.client.util.AssertionHolder.getAssertion().getPrincipal().getName():<%= org.jasig.cas.client.util.AssertionHolder.getAssertion().getPrincipal().getName()%>
<LI>user attributes :<%=principal.getAttributes() %>
<%} %>
</OL>
<%if(principal != null) {%>
<a href="<%=request.getContextPath()%>/logout.jsp" id="logout1" >logout</a>
<%} %>

<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
<script type="text/javascript">
var logoutUrl="<%=request.getContextPath()%>";
$(function(){

});
</script>
</body>
</html>
